package two_shang._10_19;

public class Undergraduate extends Student {
    String degree;

    public Undergraduate(String name, int age, String degree) {
        super(name, age);
        this.degree = degree;
    }

    public String show() {
        return "Undergraduate{" +
                "degree='" + degree + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
